﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TestOnlineProject.Models.DataAccess;
using TestOnlineProject.Models.Entities;

namespace TestOnlineProject.Models.BusinessLogic
{
    public class QuestionTypeBLO
    {
        QuestionTypeDAO questionTypeDAO = new QuestionTypeDAO();

        public List<QuestionType> ToList()
        {
            var questionTypes = questionTypeDAO.Select();
            return questionTypes;
        }

        public QuestionType Find(int questionTypeId)
        {
            var questionType = questionTypeDAO.SelectByQuestionTypeId(questionTypeId);
            return questionType;
        }
    }
}